package com.shy.springframework.beans.factory.config;

import com.shy.springframework.beans.BeansException;
import com.shy.springframework.beans.factory.ConfigurableListableBeanFactory;

/**
 * @author yzpang
 * @desc: 扩展接口-bean实例化前触发
 * @date: 2023/2/8 11:27
 */
public interface BeanFactoryPostProcessor {

    /**
     * 在所有的BeanDefinition注册完成后,Bean实例化前,
     * 提供修改BeanDefinition属性的机制
     * @param beanFactory
     * @throws BeansException
     */
    void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException;
}
